<template>
    <div>
        <ul>
            <li v-for="(item,index) in list" :key="index">
                {{item | orderByDesc}}
            </li>
        </ul>
        <input type="text" name="" v-model="msg"> {{msg | orderByDesc}} 子组件：
        <SubVue></SubVue>
    </div>
</template>
<script>
import SubVue from './subVue.vue';
export default {
    data() {
        return {
            list: ['1234321', '山西悬空市空悬西山', '带领我们向前进'],
            msg: '你好吗'
        }
    }, filters: {
        orderByDesc: function(text) {
            return text.split('').reverse().join('');
        }
    }, components: {
        SubVue
    }
}
</script>
<style>
</style>
